import request from '@/utils/request'

// 获取分类信息
export const addTagApi = (data) => {
    return request({
        url: '/ydd_tag/add',
        method: 'post',
        data
    })
}

// 删除标签
export const delTagApi = (id) => {
    return request({
        url: '/ydd_tag/del?id=' + id,
        method: 'get',
    })
}

// 获取单个标签详情
export const getTagInfoApi = (id) => {
    return request({
        url: '/ydd_tag/rowInfo?id=' + id,
        method: 'get',
    })
}

// 修改标签
export const editTagApi = (data) => {
    return request({
        url: '/ydd_tag/update',
        method: 'post',
        data
    })
}
